<!doctype html>
<html class="no-js">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>{$meta_title}</title>

		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="icon" type="image/png" href="">
		<link rel="apple-touch-icon-precomposed" href="">
		<meta name="apple-mobile-web-app-title" content="{$meta_title}" />
		<link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/amazeui.min.css" />
		<link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/admin.css">
		<link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/mycss.css">
		<script type="text/javascript" src="__PUBLIC__/libs/dingding/javascripts/zepto.min.js"></script>
		<script type="text/javascript" src="http://g.alicdn.com/dingding/dingtalk-pc-api/2.6.2/index.js"></script>
		<style type="text/css">.admin-index dl{width:32%;}</style>
	</head>

	<body>
		<script type="text/javascript">
			function taskInfo(content) {
				DingTalkPC.device.notification.alert({
					message: content,
					title: "任务详情", //可传空
					buttonName: "知道了",
					onSuccess: function() {
						/*回调*/
					},
					onFail: function(err) {}
				});

			}
		</script>

		<div class="am-cf admin-main">
			<!-- sidebar start -->
			<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
				<div class="am-offcanvas-bar admin-offcanvas-bar">
					<ul class="am-list admin-sidebar-list">
						<li>
							<a href="#"><span><img alt="{$user_info.name}" src="{$user_info.avatar}"  style="display: block; margin: 0 auto; width: 80%;border-radius: 50%;"></span> {$user_info.name}</a>
						</li>
						<li class="nav-active">
							<a href="/Home/Task/shouye"><span class="am-icon-home"></span> 首页</a>
						</li>
						<li>
							<a href="/Home/Task/mytask"><span class="am-icon-file-text"></span>任务</a>
						</li>
						<li>
							<a href="/Home/Server/index"><span class="am-icon-recycle"></span> 服务器</a>
						</li>
						<li>
							<a href="/Home/Customer/index"><span class="am-icon-user-md"></span>客户</a>
						</li>
						<li>
							<a href="/Home/Project/index"><span class="am-icon-briefcase"></span>项目</a>
						</li>
						<li>
							<a href="/Home/Service/index"><span class="am-icon-puzzle-piece"></span>服务</a>
						</li>
					</ul>

				</div>
			</div>
			<!-- sidebar end -->

			<!-- content start -->
			<div class="admin-content">
				<div class="admin-content-body">
					<div class="am-cf am-my-title">{$meta_title}</div>
					<div class="admin-index am-margin">
						<dl data-href="/Home/Task/mytask" class="am-scrollspy-init am-scrollspy-inview am-animation-slide-right">
							<dt class="qs"><i class="am-icon-file-text"></i></dt>
							<dd>任务</dd>
						</dl>
						<dl data-href="/Home/Server/index" class="am-scrollspy-init am-scrollspy-inview am-animation-slide-right">
							<dt class="cs"><i class="am-icon-recycle"></i></dt>
							<dd>服务器</dd>
						</dl>
						<dl data-href="/Home/Customer/index" class="am-scrollspy-init am-scrollspy-inview am-animation-slide-right">
							<dt class="hs"><i class="am-icon-user-md"></i></dt>
							<dd>客户</dd>
						</dl>
						
					</div>
					<div class="admin-index am-margin">
						<dl data-href="/Home/Project/index" class="am-scrollspy-init am-scrollspy-inview am-animation-slide-right">
							<dt class="ls"><i class="am-icon-briefcase"></i></dt>
							<dd>项目</dd>
						</dl>
						<dl data-href="/Home/Service/index" class="am-scrollspy-init am-scrollspy-inview am-animation-slide-right">
							<dt style="background-color: #5eb95e"><i class="am-icon-puzzle-piece"></i></dt>
							<dd>服务</dd>
						</dl>
					</div>
					<div class="am-g">
						<div class="am-u-sm-12"><span class="am-text-default">最新任务</span>
							<table class="am-table am-table-striped am-table-hover table-main">
								<thead>
									<tr>
										<th>项目编号</th>
										<th>执行人</th>
										<th>任务内容</th>
										<th>发布人</th>
										<th>状态</th>

									</tr>
								</thead>
								<tbody>
									<volist name="task_list" id="vo" key="k">
										<tr>

											<td>{$vo.projectid}</td>
											<td>{$vo.uid}</td>
											<td>{$vo.content|mb_substr=###,0,10,'utf-8'}....
												<a href="javascript:taskInfo('{$vo.content}');">详细</a>
											</td>
											<td>{$vo.creater}</td>
											<td>
												<if condition="$vo.status eq 1 ">
													<span class="am-badge am-badge-warning">进行中</span>
													<elseif condition="$vo.status eq 2 " />
													<span class="am-badge am-badge-danger">未开始</span>
													<elseif condition="$vo.status eq 3 " />
													<span class="am-badge am-badge-success">已完结</span>
												</if>

											</td>

										</tr>
									</volist>

								</tbody>
							</table>
						</div>
					</div>

				</div>

			</div>
			<!-- content end -->

		</div>

		<script src="__ROOT__/Application/Home/View/default/assets/js/jquery.min.js"></script>

		<script src="__ROOT__/Application/Home/View/default/assets/js/amazeui.min.js"></script>
		<script src="__ROOT__/Application/Home/View/default/assets/js/app.js"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				$('.admin-index dl').click(function(){
					window.location.href = $(this).attr('data-href')
				})
			});
		</script>
	</body>

</html>